import { request } from "../request";

export const login = (data: { username: string; password: string }) => {
  return request<Api.Response.Login>({
    method: "post",
    url: "/auth/login",
    data
  });
};

export const getUserInfo = () => {
  return request({
    method: "get",
    url: "/user/info"
  });
};
